// (function(){
// 	var boxwidth = 500;
// 	var boxheight = 400;
// 	var message = "添加成功"
// 	var screenwidth = screen.width;
// 	var screenheight = screen.height;
// 	var box = document.createElement("div");
// 	box.setAttribute("id","box");
// 	box.innerHTML = message;
// 	document.body.appendChild(box);
// 	box.style.width = boxwidth+'px';
// 	box.style.height = boxheight+'px';
// 	box.style.position = "relative";
// 	box.style.left = (screenwidth/2)-(boxwidth/2)+'px';
// 	box.style.top = (boxheight/2)+'px';


// }())
var b = {
	'boxwidth' : 500,
	'boxheight' : 400,
	'message' : "添加成功",
	'alert':function(){
		var screenwidth = screen.width;
		var screenheight = screen.height;
		var box = document.createElement("div");
		box.setAttribute("id","box");
		box.innerHTML = this.message;
		document.body.appendChild(box);
		box.style.width = this.boxwidth+'px';
		box.style.height = this.boxheight+'px';
		box.style.position = "relative";
		box.style.left = (screenwidth/2)-(this.boxwidth/2)+'px';
		box.style.top = (screenheight/2)-(this.boxwidth/2)+'px';
	}
}
b.alert();